<?php
declare (strict_types = 1);
namespace app\api\logic;
use app\admin\model\GoodsCat;
use think\facade\Log;
class CatLogic
{
	function lists(){
		 return GoodsCat::where("status",1)->order("sort desc")->select();
	}
	function details($args = []){
		  if(isset($args['ordernum']) && !empty($args['ordernum'])){
		  		$data = Order::where("ordernum",$args['ordernum'])->find();
		  }
		  return $data ?? [];
	}

}